package com.aplikata.evok.bo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.aplikata.bo.City;
import com.aplikata.bo.User;

/**
 * @ClassName: Patient
 * @Description: TODO
 * @author Huyun
 * @date 15. 5. 2012. 13:56:15
 */
public class Patient implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Long id;

	private Set<PatientTherapy> patientTherapies = new HashSet<PatientTherapy>(0);
	private City birthplace;
	private User user;
	private User operUser;

	private String surname;
	private String name;
	private Date birthday;
	private Integer sex;

	private Date operTime;

	public final static String QY_FINDNAME = "Patient.findNameBySurnameName";
	public final static String QY_FIND_BY_NAME = "Patient.findBySurnameName";
	public final static String QY_FIND_USER = "Patient.findUser";
	public final static String QY_FIND_BY_USER = "Patient.findByUser";
	public final static String QY_FIND_BY_ID = "Patient.findById";

	public final static String LB_CREATE_DATE = "evok_patient_createDate";
	public final static String LB_TITLE = "evok_patient_title";

	// Constructors

	/** default constructor */
	public Patient() {
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Set<PatientTherapy> getPatientTherapies() {
		return patientTherapies;
	}

	public void setPatientTherapies(Set<PatientTherapy> patientTherapies) {
		this.patientTherapies = patientTherapies;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public City getBirthplace() {
		return birthplace;
	}

	public void setBirthplace(City birthplace) {
		this.birthplace = birthplace;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getOperUser() {
		return operUser;
	}

	public void setOperUser(User operUser) {
		this.operUser = operUser;
	}

	public Date getOperTime() {
		return operTime;
	}

	public void setOperTime(Date operTime) {
		this.operTime = operTime;
	}

}